package edu.yctc.manage.dao;

import edu.yctc.manage.entity.ScoreDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.yctc.manage.utils.PageQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author zyj
 * @email 1527215026@qq.com
 * @date 2021-03-29 14:02:07
 */
@Mapper
public interface ScoreDAO extends BaseMapper<ScoreDO> {
	int insert(ScoreDO scoreDO);

	int getTotal();

	List<ScoreDO> getScoreDOs(PageQuery pageQuery);

	int update(ScoreDO scoreDO);

	ScoreDO getScoreDOByStudentIdAndCourseId(Long studentId, Long courseId);

	int updateScore(ScoreDO scoreDO);
}
